import fetch from  '../../utils/request'
const login = (data) => {
 return fetch({
    url: '/login',
    method: 'POST',
    data
  })
}

// 测试
const loginPut = (data) => {
  return fetch({
    url: '/loginPut',
    method: 'PUT',
    data
  })
}

const loginDel = (params) => {
  return fetch({
    url: '/loginDel',
    method: 'DELETE',
    params
  })
}

export {
  login,
  loginPut,
  loginDel
}